#pragma once
#include "AnyEditor.h"
class CSelectionSet;

class CSelectEditor :
	public TZoomWithWheel<CAnyEditor>
{

public:
	CSelectEditor(void);
	virtual ~CSelectEditor(void);
	static CString GetID();
	virtual void Initialize(CAnyView* pView);
	virtual EditorState OnLButtonDown(UINT nFlags, long x, long y);
	virtual EditorState OnLButtonUp(UINT nFlags, long x, long y);
	virtual void OnMouseMove(UINT nFlags, long x, long y);

	// property support
	virtual CShapeInfo* GetShapeInfo();
	virtual void OnChangeParam(UINT nID);

protected:
	void DrawRectangle(long x, long y, bool bDraw);
	CSelectionSet* Selecter();
private:
	CShapeInfo* m_pShapeInfo;
	TDF_Label m_LabelSelected;

	CSelectionSet* m_pSelectionSet;
	CPoint m_ptStart;
	CPoint m_ptEnd;
	CPen*	m_pPen;
};
